#ifndef __WARNING_H__
#define __WARNING_H__

#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <unistd.h>

//定义魔术字符'x'和ioctl命令最大数量2
#define TEST_MAGIC 'x'  
#define TEST_MAX_NR 2                           

#define LED1 _IO(TEST_MAGIC, 0)              
#define LED2 _IO(TEST_MAGIC, 1)
#define LED3 _IO(TEST_MAGIC, 2)
#define LED4 _IO(TEST_MAGIC, 3)

//led状态枚举
enum STATUS
{
    ON = 0,
    OFF
};

extern void warning_off();
extern void* warning_on(void *arg);

#endif